//
//  ChooseOrganizationViewController.h
//  BVAttend
//
//  Created by Allen Thomas on 10/19/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface EventSetupViewController : UIViewController <UIPickerViewDelegate, UIPickerViewDataSource, UIActionSheetDelegate, UITableViewDelegate, UITableViewDataSource> {
	IBOutlet UITableView *table;
	NSMutableArray *organizations;
	int selectedOrganization;
	
	UIActionSheet *pickerAcc;
	UIActionSheet *datePickerAcc;
	UIActionSheet *timePickerAcc;

	UIDatePicker *dtpicker;
	UIDatePicker *timepicker;
}

@property (nonatomic) int selectedOrganization;
@property (nonatomic, retain) UITableView *table;
@property (nonatomic, retain) NSMutableArray *organizations;

- (NSString *)dateToString:(NSDate *) theDate;
- (NSString *)timeToString:(NSDate *) theDate; 

- (void)showPicker;
- (void)pickerDoneAction:(id)sender;
- (void)showDatePicker:(UIDatePicker*)picker withTitle:(NSString*)title;
- (void)datePickerDoneAction:(id)sender;

- (void)dateChanged:(id)sender;
- (void)setMeetingDateTimetoSelectedOrganization;

- (void)performAttendance:(id)sender;
- (void)loadBlackBackGround;

@end
